package com.rectcircle.scalatrateset.controller

import org.scalatra.FlashMapSupport

/**
  * @author Rectcircle
  *         createTime 2016/12/31
  */
class FlashController extends ScalatratestStack with FlashMapSupport{
	get("/toOther"){
		flash("notice") = "dsf"
		redirect(url("/other"))
	}
	
	get("/other"){
		<h1>toOther的参数是：{flash.get("notice")}</h1>
	}
}
